package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsRegionMapper;
import com.qf.pojo.DtsRegion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegionServiceImpl implements RegionService{

    @Autowired
    private DtsRegionMapper regionMapper;
    @Override
    public IPage<DtsRegion> queryRegionAll(Integer page, Integer limit) {
        IPage<DtsRegion> iPage=new Page<>(page,limit);
        QueryWrapper<DtsRegion> queryWrapper=new QueryWrapper<>();

        IPage<DtsRegion> regionIPage = regionMapper.selectPage(iPage, queryWrapper);
        return regionIPage;
    }
}
